package com.avic.modules.task.rest;

import com.avic.modules.task.service.EquipEhrService;
import org.springframework.stereotype.Component;

/**
 * @author zhangzikang
 * @date 2019-01-08
 */
@Component
public class UpdateHealthTask {

    private final EquipEhrService equipEhrService;

    public UpdateHealthTask(EquipEhrService equipEhrService) {
        this.equipEhrService = equipEhrService;
    }

    public void runUpdateHealth(){
        equipEhrService.updateHealth();
    }
}
